package com.blacksea.resourceserver.web.security.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.blacksea.resourceserver.web.security.request.VerifyOAuth2TokenRequest;
import com.blacksea.resourceserver.web.security.response.VerifyOAuth2TokenResponse;

/**
 * FeignClient
 *
 * @author blacksea3(jxt) 2021/2/11 14:28
 */
@FeignClient(name = "feignService", url = "127.0.0.1:8082/oauth")
public interface FeignService {

    @PostMapping(value = "verify", consumes = "application/json")
    @ResponseBody
    VerifyOAuth2TokenResponse checkToken(VerifyOAuth2TokenRequest checkTokenReqVO);
}
